// import { string } from 'prop-types';
// import { Input } from 'native-base';s
import React from 'react';
import { Text, TextInput, View } from 'react-native';
import PwdInput from 'react-native-pwd-input';

export default function tpl(a: <T>(action: string, ...args: unknown[]) => ((...args: unknown[]) => void), s: (...class_names: string[]) => {}, d: (d: string) => string | unknown[]) {
	return (<View style={{ padding: 20 }}>
		<View style={{ marginTop: 50 }}>
			<Text style={{ fontSize: 30, color: '#333', fontWeight: 'bold' }}>安贝星</Text>
			<Text style={{ fontSize: 16 }}>教师登录</Text>
		</View>
		<View style={{ marginTop: 20 }}>
			<View style={{ borderBottomWidth: 1, borderBottomColor: '#ddd', flexDirection: 'row', alignItems: 'center' }}>
				<Text style={{ lineHeight: 50 }}>帐号：</Text>
				<TextInput style={{ width: 300, paddingRight: 40, height: 50 }} placeholder="请输入帐号" onChangeText={a('a002')} />
			</View>
			<View style={{ borderBottomWidth: 1, borderBottomColor: '#ddd', flexDirection: 'row', alignItems: 'center' }}>
				<Text style={{ lineHeight: 50 }}>密码：</Text>
				<PwdInput style={{ width: 300, paddingRight: 40, height: 50 }} placeholder="请输入密码" onChangeText={a('a003')} />
				{/* source={require('../../imgs/shouye.png')} */}
			</View>
		</View>
		<View style={{ height: 40, backgroundColor: '#4975db', marginTop: 50, borderRadius: 5 }} >
			<Text style={{ textAlign: 'center', color: '#fff', lineHeight: 40 }} onPress={a('a004')}>登录</Text>
		</View>
	</View>);
}
